package com.sunshine.wrongquestionset.room.entity

import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * @author sunshine
 * @date 2021/3/26
 * 题目类型实体类
 */
@Entity(tableName = "question_type")
class QuestionTypeEntity(
    @PrimaryKey(autoGenerate = true)
    val id: Int,
    val name: String
) {
    override fun toString(): String {
        return "QuestionTypeEntity(id=$id, name='$name')"
    }
}